package com.gwd.task.model;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.gwd.task.entity.FileLookupMarkEntity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author zhiyongming
 * @date 2021/1/27 11:45
 */
@Getter
@Setter
@NoArgsConstructor
public class FileLookupMarkDTO {
    private Long flmId;
    private Long userId;
    private Long fuId;
    private Integer isLookUp;

    public FileLookupMarkDTO(FileLookupMarkEntity entity) {
        BeanUtil.copyProperties(entity, this, CopyOptions.create().setIgnoreError(false).setIgnoreNullValue(true));
    }
}
